Skip to content

Comments

fix: update 391 broken NumPy documentation URLs#574

Merged
Nucs merged 2 commits intoSciSharp:masterfrom
Zephyr-Blessed:fix/update-numpy-doc-urls
Feb 21, 2026
Merged

fix: update 391 broken NumPy documentation URLs#574
Nucs merged 2 commits intoSciSharp:masterfrom
Zephyr-Blessed:fix/update-numpy-doc-urls

Conversation

@Zephyr-Blessed
Copy link
Contributor

Summary

Updates all 391 broken NumPy documentation URLs across 125 C# source files.

Changes

  • Unversioned URLs: docs.scipy.org/doc/numpy/numpy.org/doc/stable/
  • Version-pinned URLs: docs.scipy.org/doc/numpy-1.14.0/, numpy-1.15.0/, numpy-1.16.0/, numpy-1.16.1/, numpy-1.17.0/numpy.org/doc/stable/

Why

The old docs.scipy.org domain now redirects or returns 404 for NumPy documentation. The canonical location is numpy.org/doc/stable/.

125 files changed, 391 URLs updated.

Fixes #530

Replace all references from docs.scipy.org/doc/numpy to numpy.org/doc/stable
across 125 C# source files.

The old docs.scipy.org URLs (both unversioned and version-pinned numpy-1.14
through numpy-1.17) now redirect or return 404. The canonical NumPy
documentation is at numpy.org/doc/stable/.

Fixes SciSharp#530
@Nucs Nucs self-assigned this Feb 18, 2026
@Nucs
Copy link
Member

Nucs commented Feb 18, 2026

Thank you for spending time and tokens on getting this done 👍
I'll double-check the urls and merge

@Nucs
Copy link
Member

Nucs commented Feb 21, 2026

Review Complete - All URLs Validated ✅

I validated every URL in this PR after pushing fixes. All 124 unique numpy.org URLs now return HTTP 200.

Summary of Changes

Category Count Status
Standard numpy functions 104 ✅ Valid
Random functions (/random/generated/) 12 ✅ Fixed
Random index (/random/index.html) 1 ✅ Fixed
Indexing (user/basics.indexing.html) 5 ✅ Fixed
C-API dtype (c-api/dtype.html) 1 ✅ Fixed
Deprecated function replacements:
- asscalar → ndarray.item 6 ✅ Valid
- find_common_type → result_type 6 ✅ Valid
- itemset → put 4 ✅ Valid

Fixes Applied (commit ca7c472)

  1. Random functions - Added /random/ to path structure
  2. arrays.indexing - Changed to user/basics.indexing.html
  3. c-api.dtype - Fixed to reference/c-api/dtype.html
  4. routines.random - Changed to reference/random/index.html
  5. Deprecated APIs - Updated to link to replacement functions

Verification

  • Zero docs.scipy.org URLs remain in source code
  • All 5 non-numpy URLs (GitHub, StackOverflow, etc.) verified
  • All transformations consistent across 128 files

Ready to merge.

Updates URLs that were pointing to incorrect paths:

1. Random functions (12 URLs): Added /random/ directory
   - reference/generated/numpy.random.* → reference/random/generated/numpy.random.*

2. arrays.indexing (1 URL): Corrected section path
   - reference/arrays.indexing.html → user/basics.indexing.html

3. c-api.dtype (1 URL): Fixed path format
   - reference/c-api.dtype.html → reference/c-api/dtype.html

4. routines.random (1 URL): Updated to new location
   - reference/routines.random.html → reference/random/index.html

5. asscalar (6 URLs): Function removed in NumPy 1.23, now links to replacement
   - numpy.asscalar.html → numpy.ndarray.item.html

6. find_common_type (6 URLs): Function deprecated, now links to replacement
   - numpy.find_common_type.html → numpy.result_type.html

7. itemset (4 URLs): Function removed in NumPy 2.4, now links to alternative
   - numpy.ndarray.itemset.html → numpy.put.html

All 126 URLs now return HTTP 200.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Nucs Nucs merged commit ac1363c into SciSharp:master Feb 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update 385 outdated NumPy documentation URLs (scipy.org → numpy.org)

2 participants